﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime;

namespace ajayumi.develop.win32.Transport.Server.WinForm
{
    public partial class FailureDialog : Form
    {
        public FailureDialog()
        {
            InitializeComponent();
        }

        //
        // 摘要:
        //     向用户显示控件。
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public new void Show()
        {
            base.Show();

            string str = string.Format("{0} 接收到远程单片机发送的故障信息，请联系维护人员处理。", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            this.listBox1.Items.Insert(0, str);
        }

        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            this.btnClose.PerformClick();
            e.Cancel = true;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

    }
}
